import request from '@/utils/request'

// 查询量化列表
export function listAppQuantification(query) {
  return request({
    url: '/customer/v1/app/quantification/page',
    method: 'post',
    data: query
  })
}

// 查询量化详细
export function getAppQuantification(id, lang) {
  return request({
    url: '/customer/v1/app/quantification?id=' + id + '&lang=' + lang,
    method: 'get'
  })
}

// 新增量化
export function addAppQuantification(data) {
  return request({
    url: '/customer/v1/app/quantification',
    method: 'post',
    data: data
  })
}

// 修改量化
export function updateAppQuantification(data) {
  return request({
    url: '/customer/v1/app/quantification',
    method: 'put',
    data: data
  })
}

// 删除量化
export function delAppQuantification(id) {
  return request({
    url: '/customer/v1/app/quantification/' + id,
    method: 'delete'
  })
}

// 查询量化列表
export function getListAppQuantification(appId) {
  return request({
    url: '/customer/v1/app/quantification/app_list?app_id=' + appId,
    method: 'get',
  })
}
